package String;

/**
 * StringBuilder修改字符串的性能
 */
public class StringBuilderDemo2 {
    public static void main(String[] args) {
        String str = "a";
        StringBuilder builder = new StringBuilder(str);
        for(int i = 0;i<10000000;i++){
            //追加
            builder.append("a");
            System.out.println(builder);
        }
        System.out.println("执行完毕");
    }
}
